package com.power.project.service.impl;

import com.power.base.service.impl.BaseServiceImpl;
import com.power.project.dao.Ww_depart_userDao;
import com.power.project.model.P_projectuser;
import com.power.project.model.Ww_depart_user;
import com.power.project.model.Ww_user;
import com.power.project.service.Ww_depart_userService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  企业用户所在部门业务层实现
 */
@Service
public class Ww_depart_userServiceImpl extends BaseServiceImpl implements Ww_depart_userService {

    @Autowired
    private Ww_depart_userDao dao;

    @Override
    public List<String> getUseridsByDepartId(String departId) {
        return dao.findWwuseridByDepartid(departId);
    }

    @Override
    public void deleteByDepartIdAndWwuserids(String departId, List<String> userIds) {
        dao.deleteByDepartIdAndWwuserids(departId,userIds);
    }

    @Override
    public void saveAll(List<Ww_depart_user> list) {
        dao.saveAll(list);
    }
    @Override
    public List<Ww_user> findByUserId(List<String> userIds) {
        return dao.findByUserId(userIds);
    }
}
